package qwe;

import java.util.Scanner;

public class Student {
    //属性
    private String name;
    private String id;
    private String banji;
    public Student(String Stu_name, String Stu_id, String Stu_banji){
        name = Stu_name;
        id = Stu_id;
        banji = Stu_banji;
    }


    public void abc(String Stu_name, String Stu_id, String Stu_banji){
        Scanner a = new Scanner(System.in);
        System.out.println("请输入你的姓名:");
        Stu_name = a.next();
        System.out.println("学号");
        Stu_id = a.next();
        System.out.println("班级");
        Stu_banji = a.next();
    }



    //输出学生信息
    public void shuchu(){
        System.out.println("我的名字是:"+name);
        System.out.println("我的学号是:"+id);
        System.out.println("我的班级是:"+banji);
    }
    //输出课程
    public void study(){
        System.out.println("我学习的课程有\"java,英语,数学\"");
    }
}


